package com.david.IfaceAutoTest.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author david
 * @since 2022-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("project_token_management")
@ApiModel(value="ProjectTokenManagement对象", description="")
public class ProjectTokenManagement extends Model<ProjectTokenManagement> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "项目id")
    private Integer projectId;

    @ApiModelProperty(value = "目标接口id")
    private Integer targetInterfaceId;

    @ApiModelProperty(value = "token前缀")
    private String prefix;

    @ApiModelProperty(value = "token字段名")
    private String tokenFieldName;

    @ApiModelProperty(value = "token后缀")
    private String suffix;

    @ApiModelProperty(value = "是否删除，0未删")
    @TableLogic
    private Integer isDel;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
